package com.itheima.a05TreeSetDemo;

import java.util.TreeSet;

public class TreeSetDemo2 {
    public static void main(String[] args) {
        TreeSet<Student> ts = new TreeSet<>();
        ts.add(new Student("zhangsan", 23));
        ts.add(new Student("lisi", 24));
        ts.add(new Student("wangwu", 25));

        System.out.println(ts);
    }
}
